package org.balabala.video.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.balabala.video.entity.FavoriteInfo;
import org.apache.ibatis.annotations.Param;
import org.balabala.video.entity.VideoEntity;

import java.util.List;

/**
 * (FavoriteInfo)表数据库访问层
 *
 * @author makejava
 * @since 2021-09-08 14:11:35
 */
@Mapper
public interface FavoriteInfoDao extends BaseMapper<FavoriteInfo> {
    List<FavoriteInfo> getByUid(Long uid);

    List<FavoriteInfo> getByVideoId(Long videoId);

    int exist(Long uid, Long videoId);

    void deleteByUidAndVideoId(Long uid, Long videoId);
}